-- GENERATED SPELL FOR [Unbound Seer] --


function spell0_33422(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(38204,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33422', 1000, 1)
end

function spell1_33422(pUnit, Event) --@Ley Curse,n/a--
pUnit:FullCastSpellOnTarget(58667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33422', 32000, 1)
end

function Sorts_33422(pUnit, Event)
local choix_sorts_33422 = math.random(0, 1)
if choix_sorts_33422 == 0 then
pUnit:RegisterEvent('spell0_33422', 1, 1)
end
if choix_sorts_33422 == 1 then
pUnit:RegisterEvent('spell1_33422', 1, 1)
end
end

function mob33422_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33422', math.random(1500, 3000), 1)
end

function mob33422_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33422_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33422_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33422, 1, 'mob33422_Action')
RegisterUnitEvent(33422, 2, 'mob33422_Leave')
RegisterUnitEvent(33422, 3, 'mob33422_Kill')
RegisterUnitEvent(33422, 4, 'mob33422_Die')
